package com.logicwin.aibala.model.androidSWInfo;

import java.util.ArrayList;

public class APKRecommend {
	public static ArrayList<Object[]> mRecommedList = new ArrayList<Object[]>();
	
	public static void addRecommend(String softId, String image){
		mRecommedList.add(new Object[]{softId,image});
	}
	
	public static String getRecommendSoftId(int index){
		if (mRecommedList.size()>index){
			Object[] object = mRecommedList.get(index);
			return (String)object[0];
		}
		else {
			return null;
		}
	}
	
	public static String getRecommendImage(int index){
		if (mRecommedList.size()>index){
			Object[] object = mRecommedList.get(index);
			return (String)object[1];
		}
		else {
			return null;
		}
	}
	
	public static void clear(){
		mRecommedList.clear();
	}
	
	public static boolean isEmpty(){
		return mRecommedList.isEmpty();
	}
	
	public static int listCount(){
		return mRecommedList.size();
	}
}
